package bite;

public class Test {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createTree();
        System.out.println("节点的个数： " + binaryTree.size(root));
        //binaryTree.getLeafNodeCount(root);
        //System.out.println("叶子节点的个数："+ BinaryTree.learSize);

        System.out.println("叶子的节点个数："+binaryTree.getLeafNodeCount2(root));
        System.out.println("第k层节点的个数：" + binaryTree.getKLevelNodeCount(root,3));
        int ret = binaryTree.getHeight(root);
        System.out.println("树的高度为：" + ret);

        BinaryTree.TreeNode set = binaryTree.findVal(root,'g');
        System.out.println(set.val);

    }

}
